/* 仪表盘样式 */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

/* ================================
   【仪表盘菜单】相关样式
   ================================ */
.dashboard-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 24px;
  margin-bottom: 32px;
}

.stat-card {
  background: var(--bg-white);
  border-radius: var(--radius-xl);
  padding: 24px;
  box-shadow: var(--shadow-1);
  border: 1px solid var(--border-light);
  transition: var(--transition-base);
  position: relative;
  overflow: hidden;
}

.stat-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow-4);
}

.stat-card::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 4px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

.stat-card::after {
  content: '';
  position: absolute;
  top: -50%;
  right: -50%;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle, rgba(22, 119, 255, 0.05) 0%, transparent 70%);
  opacity: 0;
  transition: var(--transition-slow);
}

.stat-card:hover::after {
  opacity: 1;
}

/* 不同统计卡片的主题色 */
.stat-card:nth-child(1) {
  background: linear-gradient(135deg, rgba(82, 196, 26, 0.02) 0%, var(--bg-white) 50%);
  border-left: 4px solid var(--success-color);
}

.stat-card:nth-child(1)::before {
  background: linear-gradient(90deg, var(--success-color), var(--success-hover));
}

.stat-card:nth-child(1)::after {
  background: radial-gradient(circle, rgba(82, 196, 26, 0.08) 0%, transparent 70%);
}

.stat-card:nth-child(2) {
  background: linear-gradient(135deg, rgba(24, 144, 255, 0.02) 0%, var(--bg-white) 50%);
  border-left: 4px solid var(--info-color);
}

.stat-card:nth-child(2)::before {
  background: linear-gradient(90deg, var(--info-color), var(--info-hover));
}

.stat-card:nth-child(2)::after {
  background: radial-gradient(circle, rgba(24, 144, 255, 0.08) 0%, transparent 70%);
}

.stat-card:nth-child(3) {
  background: linear-gradient(135deg, rgba(250, 173, 20, 0.02) 0%, var(--bg-white) 50%);
  border-left: 4px solid var(--warning-color);
}

.stat-card:nth-child(3)::before {
  background: linear-gradient(90deg, var(--warning-color), var(--warning-hover));
}

.stat-card:nth-child(3)::after {
  background: radial-gradient(circle, rgba(250, 173, 20, 0.08) 0%, transparent 70%);
}

.stat-icon {
  width: 56px;
  height: 56px;
  border-radius: var(--radius-xl);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 24px;
  margin-bottom: 16px;
  position: relative;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0.6));
  backdrop-filter: blur(10px);
  box-shadow: var(--shadow-2);
}

.stat-icon::before {
  content: '';
  position: absolute;
  inset: 0;
  border-radius: var(--radius-xl);
  background: currentColor;
  opacity: 0.1;
}

.stat-icon i {
  position: relative;
  z-index: 1;
  background: linear-gradient(135deg, currentColor, currentColor);
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
  filter: drop-shadow(0 2px 4px rgba(0, 0, 0, 0.1));
}

.stat-icon.primary {
  color: var(--primary-color);
  box-shadow: 0 4px 20px rgba(22, 119, 255, 0.2);
}

.stat-icon.success {
  color: var(--success-color);
  box-shadow: 0 4px 20px rgba(82, 196, 26, 0.2);
}

.stat-icon.warning {
  color: var(--warning-color);
  box-shadow: 0 4px 20px rgba(250, 173, 20, 0.2);
}

.stat-icon.info {
  color: var(--info-color);
  box-shadow: 0 4px 20px rgba(24, 144, 255, 0.2);
}

.stat-number {
  font-size: 32px;
  font-weight: 700;
  color: var(--text-primary);
  margin-bottom: 8px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  background: linear-gradient(135deg, var(--text-primary), var(--text-secondary));
  -webkit-background-clip: text;
  -webkit-text-fill-color: transparent;
  background-clip: text;
}

.stat-label {
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 500;
  margin: 0;
}

/* 账号详情表格优化 */
#dashboard-section .card {
  border: 1px solid var(--border-light);
  border-radius: var(--radius-xl);
  overflow: hidden;
  background: linear-gradient(135deg, var(--bg-white) 0%, rgba(248, 250, 252, 0.5) 100%);
}

#dashboard-section .card-header {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.05) 0%, rgba(64, 150, 255, 0.02) 100%);
  border-bottom: 1px solid var(--border-light);
  padding: 20px 24px;
  position: relative;
}

#dashboard-section .card-header::before {
  content: '';
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  height: 3px;
  background: linear-gradient(90deg, var(--primary-color), var(--primary-hover));
}

#dashboard-section .card-header h5 {
  color: var(--text-primary);
  font-weight: 600;
  margin: 0;
  font-size: 16px;
}

#dashboard-section .table {
  margin: 0;
}

#dashboard-section .table th {
  background: linear-gradient(135deg, var(--gray-50) 0%, rgba(248, 250, 252, 0.8) 100%);
  color: var(--text-primary);
  font-weight: 600;
  font-size: 13px;
  padding: 16px 24px;
  border: none;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

#dashboard-section .table td {
  padding: 16px 24px;
  border-bottom: 1px solid var(--border-light);
  font-size: 14px;
  color: var(--text-primary);
}

#dashboard-section .table tbody tr:hover {
  background: linear-gradient(135deg, rgba(22, 119, 255, 0.02) 0%, transparent 100%);
}

#dashboard-section .table tbody tr:last-child td {
  border-bottom: none;
}

/* 状态徽章 */
#dashboard-section .badge {
  font-size: 12px;
  padding: 4px 8px;
  border-radius: var(--radius-sm);
  font-weight: 500;
}

#dashboard-section .badge.bg-success {
  background: linear-gradient(135deg, var(--success-color), var(--success-hover)) !important;
  color: var(--text-white) !important;
  box-shadow: 0 2px 8px rgba(82, 196, 26, 0.3);
}

#dashboard-section .badge.bg-danger {
  background: linear-gradient(135deg, var(--danger-color), var(--danger-hover)) !important;
  color: var(--text-white) !important;
  box-shadow: 0 2px 8px rgba(255, 77, 79, 0.3);
}

#dashboard-section .badge.bg-warning {
  background: linear-gradient(135deg, var(--warning-color), var(--warning-hover)) !important;
  color: var(--text-white) !important;
  box-shadow: 0 2px 8px rgba(250, 173, 20, 0.3);
}

/* 响应式设计 */
@media (max-width: 768px) {
  .dashboard-stats {
    grid-template-columns: 1fr;
    gap: 16px;
    margin-bottom: 24px;
  }

  .stat-card {
    padding: 20px;
  }

  .stat-icon {
    width: 48px;
    height: 48px;
    font-size: 20px;
    margin-bottom: 12px;
  }

  .stat-number {
    font-size: 28px;
    margin-bottom: 6px;
  }

  .stat-label {
    font-size: 13px;
  }

  #dashboard-section .card-header {
    padding: 16px;
  }

  #dashboard-section .table th,
  #dashboard-section .table td {
    padding: 12px 16px;
    font-size: 13px;
  }
}

@media (max-width: 480px) {
  .stat-card {
    padding: 16px;
    text-align: center;
  }

  .stat-number {
    font-size: 24px;
  }

  .stat-label {
    font-size: 12px;
  }
}
